/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.wx.entity;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * wx_user_invite_imgEntity
 * @author wangjianxin
 * @version 2018-10-19
 */
@Table(name="wx_user_invite_img", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="user_open_id", attrName="userOpenId", label="user_open_id"),
		@Column(name="invite_img", attrName="inviteImg", label="invite_img"),
		@Column(name="activity_id", attrName="activityId", label="activity_id"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class WxUserInviteImg extends DataEntity<WxUserInviteImg> {
	
	private static final long serialVersionUID = 1L;
	private String userOpenId;		// user_open_id
	private String inviteImg;		// invite_img
	private String activityId;		// activity_id
	
	public WxUserInviteImg() {
		this(null);
	}

	public WxUserInviteImg(String id){
		super(id);
	}
	
	@NotBlank(message="user_open_id不能为空")
	@Length(min=0, max=200, message="user_open_id长度不能超过 200 个字符")
	public String getUserOpenId() {
		return userOpenId;
	}

	public void setUserOpenId(String userOpenId) {
		this.userOpenId = userOpenId;
	}
	
	@NotBlank(message="invite_img不能为空")
	@Length(min=0, max=200, message="invite_img长度不能超过 200 个字符")
	public String getInviteImg() {
		return inviteImg;
	}

	public void setInviteImg(String inviteImg) {
		this.inviteImg = inviteImg;
	}
	
	@NotBlank(message="activity_id不能为空")
	@Length(min=0, max=200, message="activity_id长度不能超过 200 个字符")
	public String getActivityId() {
		return activityId;
	}

	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}
	
}